package com.ossjk.oa.advisory.service.impl;

import com.ossjk.oa.advisory.entity.Channel;
import com.ossjk.oa.advisory.mapper.ChannelMapper;
import com.ossjk.oa.advisory.service.IChannelService;
import com.baomidou.mybatisplus.mapper.SqlHelper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 渠道 服务实现类
 * </p>
 *
 * @author Jason
 * @since 2019-03-13
 */
@Service
public class ChannelServiceImpl extends ServiceImpl<ChannelMapper, Channel> implements IChannelService {
	@Override
	public Page selectVoPage(Page page, Wrapper wrapper) {
		SqlHelper.fillWrapper(page, wrapper);
		page.setRecords(baseMapper.selectVoPage(page, wrapper));
		return page;
	}
}
